home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 December
/
PCWorld_2007-12_cd.bin
/
domacnost a kancelar
/
autoit
/
autoit-v3-setup.exe
/
Examples
/
Helpfile
/
_WordPropertyGet.au3
< prev
next >
Wrap
Text File
|
2007-09-08
|
657b
|
14 lines
; *******************************************************
; Example 1 - Create a word window, open a document, check to see if the
; statusbar is visible, if it is turn it off, if it isn't turn it on.
; *******************************************************
;
#include <Word.au3>
$oWordApp = _WordCreate (@ScriptDir & "\Test.doc")
If _WordPropertyGet ($oWordApp, "statusbar") Then
MsgBox(0, "StatusBar Status", "StatusBar Visible, turning it off.")
_WordPropertySet ($oWordApp, "statusbar", False)
Else
MsgBox(0, "StatusBar Status", "StatusBar Invisible, turning it on.")
_WordPropertySet ($oWordApp, "statusbar", True)
EndIf